package com.mingqijia.gassafety.shared.constant;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Date;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName DtuPushTypeEnum.java
 * @Description TODO
 * @createTime 2023年12月18日
 */
@Getter
@RequiredArgsConstructor
public enum SMSTypeEnum {

    // 0设备故障 1设备离线 2设备运行报告 3服务到期提醒
    PUSH_0(1, "Fault_ploy_notice"),
    PUSH_1(0, "Offline_ploy_notice"),
    PUSH_2(2, "Run_ploy_notice"),
    PUSH_3(3, "Service_ploy_notice");

    private final int code;
    private final String name;


    public static SMSTypeEnum getPushTypes(int code) {
        for (SMSTypeEnum dtuPushTypeEnum : SMSTypeEnum.values()) {
            if (dtuPushTypeEnum.getCode()==(code)) return dtuPushTypeEnum;
        }
        return null;
    }

}
